package com.tm.entity;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.models.auth.In;
import lombok.Data;

/**
 * @author huangp
 * @create 2023-04-03 15:14
 */
@Data
@TableName("employee")
public class UserEntity extends CreateAllEntity{

    private Long id;// bigint(20) NOT NULL COMMENT '主键',
    private String name;// varchar(32) COLLATE utf8_bin NOT NULL COMMENT '姓名',
    private String username;// varchar(32) COLLATE utf8_bin NOT NULL COMMENT '用户名',
    private String password;// varchar(64) COLLATE utf8_bin NOT NULL COMMENT '密码',
    private String phone;// varchar(11) COLLATE utf8_bin NOT NULL COMMENT '手机号',
    private String sex;// varchar(2) COLLATE utf8_bin NOT NULL COMMENT '性别',
    @TableField("id_number")
    private String idNumber;// varchar(18) COLLATE utf8_bin NOT NULL COMMENT '身份证号',
    private Integer status;// int(11) NOT NULL DEFAULT '1' COMMENT '状态 0:禁用，1:正常',

}
